package com.snowRemovingUser.util;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 *
 * @author liguang
 */
@Component
@ConfigurationProperties(prefix = "linux")
@Data
public class LinuxConfig {

    /** 异常处理下载路径*/
    private static String remoteFilePath;

    /** 下载到本地路径*/
    private static String localFilePath;

    /** 远程连接账号*/
    private static String username;

    /** 远程连接密码*/
    private static String password;

    /** 远程Linux服务器IP*/
    private static String ip;

    /** 下载端口号*/
    private static Integer port;


    public static String getRemotePath(){

        return remoteFilePath;
    }

    public static String getLocalPath(){

        return localFilePath;
    }
    public static String getLinuxUsername(){

        return username;
    }

    public static String getLinuxPassword(){

        return password;
    }

    public static String getLinuxIp(){

        return ip;
    }

    public static Integer getLinuxPort(){

        return port;
    }



}
